package com.halflife.comeElectricity.member.rider;

import com.halflife.framework.generator.annotation.Join;
import com.halflife.framework.generator.annotation.QueryAnn;
import com.halflife.framework.generator.build.SimpleBuilder;
import com.halflife.framework.generator.build.UpdataBuilder;
import org.junit.jupiter.api.Test;

import java.math.BigDecimal;
@QueryAnn(title = "支付记录",mainTitle = "会员管理",table = "t_paylog")
public class PayLog {
    @Test
    public void generate0()throws Exception{
        SimpleBuilder builder = new SimpleBuilder();
        builder.buildListPage(this.getClass());
        builder.buildAdminController(this.getClass());
//        builder.buildAll(this.getClass());
    }
    @Test
    public void generate()throws Exception{
        UpdataBuilder builder = new UpdataBuilder();
        builder.buildMapper(this.getClass());
        builder.buildAlterTable(this.getClass());
    }
    private Integer id;
    @QueryAnn("骑手Id")
    private Integer riderId;
    @QueryAnn(value = "骑手")
    @Join()
    private Rider rider;
    @QueryAnn("充值金额")
    private BigDecimal payMoney;
    @QueryAnn("备注")
    private String memo;
    @QueryAnn("充值日期")
    private Long createDate;
    @QueryAnn("开始日期")
    private Long beginDate;
    @QueryAnn("过期日期")
    private Long endDate;
    @QueryAnn("充值openID")
    private String openId;
    @QueryAnn(value="手机号码",operate = "like")
    private String phone;
    @QueryAnn(value="骑手名称",operate = "like")
    private String riderName;
    @QueryAnn("状态")
    private Integer status;
    @QueryAnn("月份")
    private Integer months;
    @QueryAnn("套餐ID")
    private Integer packageId;
    @QueryAnn("套餐名称")
    private String packageName;
    @QueryAnn("充值类型")
    private String catagory;
    @QueryAnn("优惠劵金额")
    private BigDecimal discountMoney;
    @QueryAnn("优惠券Id")
    private String discountIds;
    @QueryAnn("img")
    private String img;
    @QueryAnn("transaction_id")
    private String transaction_id;
    @QueryAnn("退款金额")
    private BigDecimal refundMoney;

    public String getTransaction_id() {
        return transaction_id;
    }

    public void setTransaction_id(String transaction_id) {
        this.transaction_id = transaction_id;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRiderId() {
        return riderId;
    }

    public void setRiderId(Integer riderId) {
        this.riderId = riderId;
    }

    public BigDecimal getPayMoney() {
        return payMoney;
    }

    public void setPayMoney(BigDecimal payMoney) {
        this.payMoney = payMoney;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo == null ? null : memo.trim();
    }

    public Long getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRiderName() {
        return riderName;
    }

    public void setRiderName(String riderName) {
        this.riderName = riderName;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Long beginDate) {
        this.beginDate = beginDate;
    }

    public Long getEndDate() {
        return endDate;
    }

    public void setEndDate(Long endDate) {
        this.endDate = endDate;
    }

    public Integer getMonths() {
        return months;
    }

    public void setMonths(Integer months) {
        this.months = months;
    }

    public Integer getPackageId() {
        return packageId;
    }

    public void setPackageId(Integer packageId) {
        this.packageId = packageId;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getCatagory() {
        return catagory;
    }

    public void setCatagory(String catagory) {
        this.catagory = catagory;
    }

    public BigDecimal getDiscountMoney() {
        return discountMoney;
    }

    public void setDiscountMoney(BigDecimal discountMoney) {
        this.discountMoney = discountMoney;
    }

    public String getDiscountIds() {
        return discountIds;
    }

    public void setDiscountIds(String discountIds) {
        this.discountIds = discountIds;
    }

    public Rider getRider() {
        return rider;
    }

    public void setRider(Rider rider) {
        this.rider = rider;
    }

    public BigDecimal getRefundMoney() {
        return refundMoney;
    }

    public void setRefundMoney(BigDecimal refundMoney) {
        this.refundMoney = refundMoney;
    }
}